package com.lanwf.admin.interceptor;

import com.jfinal.aop.Interceptor;
import com.jfinal.aop.Invocation;
import com.jfinal.core.Controller;
import com.jfinal.kit.PropKit;
import com.lanwf.admin.utils.Cons;

/**
 * @Auther: Lanwf
 * @Date: 2021/12/23 19:01
 * @Description: 项目名称
 */
public class ContextInterceptor implements Interceptor {

    @Override
    public void intercept(Invocation inv) {
        Controller c = inv.getController();
        c.set("prj", Cons.prj);
        c.set("host", PropKit.get("host",""));
        inv.invoke();
    }
}
